﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNHDAO;

namespace QLNHBUS
{
    public class NhomSanPhamBUS
    {
        public static List<NhomSanPham> LayDanhSachNhomSanPhamChuaXoa()
        {
            NhomSanPhamDAO nspDAO = new NhomSanPhamDAO();
            return nspDAO.All().Where(m => m.Xoa == false).ToList();
        }

        public static NhomSanPham LayNhomSanPham(int manhomsanpham)
        {
            NhomSanPhamDAO nspDAO = new NhomSanPhamDAO();
            return nspDAO.GetByID(manhomsanpham);   
        }
    }
}
